package com.sbwebsocket.core.model.bo;

import com.sbwebsocket.core.model.contants.WsMessageType;
import lombok.Data;

/**
 * @Auther: GSJ
 * @Date: 2022/2/10
 * @Description:
 * @version: 1.0
 */
@Data
public class WsMessage {

    private WsMessageType type;

    //消息体json
    private String msg;

    public void setType(int type) {
        this.type = WsMessageType.valueOf(type);
    }

}
